UCF STIG Viewer Logo
Changes are coming to https://stigviewer.com. Take our survey to help us understand your usage and how we can better serve you in the future.
Take Survey

The /etc/hosts file must have mode 0644 or less permissive.


Overview

Finding ID Version Rule ID IA Controls Severity
V-22325 GEN001368 SV-44983r1_rule ECLP-1 Medium
Description
The /etc/hosts file (or equivalent) configures local host name to IP address mappings that typically take precedence over DNS resolution. If this file is maliciously modified, it could cause the failure or compromise of security functions requiring name resolution, which may include time synchronization, centralized authentication, and remote system logging.
STIG Date
SUSE Linux Enterprise Server v11 for System z 2012-12-13

Details

Check Text ( C-42390r1_chk )
Check the mode of the /etc/hosts file.
# ls -l /etc/hosts
If the file mode is not 0644, this is a finding.
Fix Text (F-38400r1_fix)
Change the mode of the /etc/hosts file to 0644.
# chmod 0644 /etc/hosts